#ifndef TASKTHREADREQUEST_H
#define TASKTHREADREQUEST_H

#include "taskrequest.h"
#include "misc.h"

namespace Wishmaster {

class WISHMASTER_EXPORT TaskThreadRequest : public TaskRequest
{
	Q_OBJECT
public:
	TaskThreadRequest(const ThreadId& id, const Wishmaster2::Network::Url& link,
			const QString& msg, Wishmaster2::Network::RequestManager* connector);

	ThreadId threadId() const;

signals:
	void result(TaskThreadRequest* task, const QByteArray& arr);

protected:
	void onRequestDone();

private:
	ThreadId m_threadId;
};

} // namespace Wishmaster

#endif // TASKTHREADREQUEST_H
